﻿Imports log4net
Imports System.Diagnostics

Partial Class ArtNoiMaster
    Inherits System.Web.UI.MasterPage

    Private _log As log4net.ILog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType)

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        _log.Info("Testando Log4Net")

    End Sub

    Private Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender

        Dim sw As Stopwatch

        sw = TryCast(Context.Items("timer"), Stopwatch)

        If sw IsNot Nothing Then

            sw.Stop()
            Me.exec_time.InnerHtml = sw.ElapsedMilliseconds

        End If

    End Sub

End Class